//Antonios Vasilakis 59475


#include <stdio.h>
int maximum(int x, int y, int z);
int minimum(int x, int y, int z);

int main(void){
    int arithmos1, arithmos2, arithmos3;
    printf("%s", "Eisagete 3 arithmous: \n");
    scanf("%d%d%d", &arithmos1, &arithmos2, &arithmos3);

    printf("arithmos1: %d, &arithmos2: %d, &arithmos3: %d\n", arithmos1, arithmos2, arithmos3);
    printf("%d, %d\n", minimum(arithmos1, arithmos2, arithmos3),maximum(arithmos1, arithmos2, arithmos3));

}

int maximum(int x, int y, int z){
    int max = x;
    if(y > max){
        max = y;
    }
    if (z > max){
        max=z;
    }
    return (max); 
}

int minimum(int x, int y, int z){
    int min = x;
    if(y < min){
        min = y;
    }
    if (z < min){
        min=z;
    }
    return (min); 
}

